-- GENERATED SPELL FOR [Doomforge Attendant] --


function spell0_19961(pUnit, Event) --@Mana Bomb,n/a--
pUnit:FullCastSpellOnTarget(36846,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19961', 2000, 1)
end

function spell1_19961(pUnit, Event) --@Steal Weapon,n/a--
pUnit:FullCastSpellOnTarget(36208,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19961', 6274, 1)
end

function Sorts_19961(pUnit, Event)
local choix_sorts_19961 = math.random(0, 1)
if choix_sorts_19961 == 0 then
pUnit:RegisterEvent('spell0_19961', 1, 1)
end
if choix_sorts_19961 == 1 then
pUnit:RegisterEvent('spell1_19961', 1, 1)
end
end

function mob19961_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19961', math.random(1500, 3000), 1)
end

function mob19961_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19961_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19961_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19961, 1, 'mob19961_Action')
RegisterUnitEvent(19961, 2, 'mob19961_Leave')
RegisterUnitEvent(19961, 3, 'mob19961_Kill')
RegisterUnitEvent(19961, 4, 'mob19961_Die')
